home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Dec 89 / 0131-UMacApp.TSomething.p-Nov89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.6 KB  |  42 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  A33          to A34
  2.  
  3. Item    6040771                         26-Nov-89        19:46
  4.  
  5. From:   MOOF                            Rollin, Keith A
  6.  
  7. To:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    UMacApp.TSomething.p
  10.  
  11. Attn: Esha, David C Hands,PRT
  12. SentBy: Keith Rollin
  13.         Reply to:    UMacApp.TSomething.p
  14. David Hands,
  15.  
  16. You write:
  17. --------
  18. In MacApp's Libraries folder there are several files named
  19. UMacApp.TSomething.p is it possible to access any of the TYPE's defined in
  20. these files? Specifically, I wanted to use TNewDocCommand which is defined in
  21. UMacApp.TApplication.p, but it appears to be private and unavailable to the
  22. application (I get a compile time error that TNewDocCommand is not declared).
  23. The unit USES UMacApp.  Writing my own TNewDocCommand would be trivial, but
  24. I'd like to know why I can't use the pre-existing command.
  25. --------
  26.  
  27. Technically, the reason why you can't reference TNewDocCommand is because it
  28. is not declared in the INTERFACE section of UMacApp.p. Neither will you be
  29. able to access anything declared solely in a file named UMacApp.TSomething.p.
  30. The mechanism for exporting a symbol to other units is to declare them in the
  31. INTERFACE section.
  32.  
  33. I assume that the MacApp authors thought that there would not be a need for
  34. TNewDocCommand to be public. However, I think that they've since changed their
  35. minds. At least, the internal experimental version of MacApp has those object
  36. public. I expect that you'll be able to access them in the final version of
  37. MacApp 2.0.
  38.  
  39. - Keith Rollin
  40. - Apple Developer Technical Support
  41.  
  42.